package element.synt;

import element.base.Synt;
import element.base.TreeNode;
import intermediate_representation.InterRP;

import java.util.ArrayList;

//CompUnit → {Decl} {FuncDef} MainFuncDef
public class CompUnit extends Synt {
    @Override
    public void tointerRP() {
        for (TreeNode node: this.getNodes()) {
            if (node instanceof Synt) {
                ((Synt) node).tointerRP();
            }
        }
    }
}
